package com.sa.user.api.feignapi;

import com.sa.user.api.dto.InstructorDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Architecture Station
 * @version 1.0
 */
@FeignClient(name = "user-service")
public interface InstructorApi {

    @GetMapping("/api/instructors/{instructorId}")
    public ResponseEntity<InstructorDTO> getInstructorById(@PathVariable Integer instructorId );
}
